import iViewTheme from 'iview-layout-themes'
const axios = iViewTheme.util.apiRequest
// 前台获取文章列表
export const getArticleList = () => {
  return axios.request({
    url: 'wl/site/get_articleList',
    type: 'get',
    php: true
  })
}
// 前台获取投诉内容列表
export const getReportContentList = () => {
  return axios.request({
    url: 'wl/site/get_report_contentList',
    type: 'get',
    php: true
  })
}
// 前台获取项目监督列表分页
export const getProjectSupervisionList = (data) => {
  return axios.request({
    url: 'wl/site/getProjectSupervisionList',
    data: data,
    ype: 'post',
    php: true
  })
}
export const useCatArticleList = (data) => {
  return axios.request({
    url: 'wl/site/useCatArticleList',
    type: 'get',
    data: { cat_id: data },
    php: true
  })
}
// 公车监督列表查询分页
export const getBusSupervisionList = (data) => {
  return axios.request({
    url: 'wl/site/getBusSupervisionList',
    data: data,
    type: 'post',
    php: true
  })
}
// 前台公车监督名称列表
export const getCompanyNameList = (data) => {
  return axios.request({
    url: 'wl/site/getCompanyNameList',
    data: data,
    type: 'post',
    php: true
  })
}
// 前台项目监督名称列表
export const getSupervisionNameList = () => {
  return axios.request({
    url: 'wl/site/getSupervisionNameList',
    type: 'get',
    php: true
  })
}
// 前台获取直属资金单位名称
export const getDistrictNameList = (data) => {
  return axios.request({
    url: 'wl/site/getDistrictNameList',
    data: data,
    type: 'post',
    php: true
  })
}
// 前台获取街道单位名称
export const getStreetNameList = (data) => {
  return axios.request({
    url: 'wl/site/getStreetNameList',
    data: data,
    type: 'post',
    php: true
  })
}
// 获得首页图片
export const getImgList = (data) => {
  return axios.request({
    url: 'wl/site/getImgList',
    data: data,
    type: 'post',
    php: true
  })
}
// 网上举报添加数据
export const addOnlineReport = (data) => {
  return axios.request({
    url: 'wl/site/addOnlineReport',
    data: data,
    type: 'post',
    php: true
  })
}
